package ru.stool.erp.jsf.beans;

import java.io.Serializable;
import java.util.Map;

import javax.faces.context.FacesContext;

public class AuthenticationBean implements Serializable {

	private static final long serialVersionUID = -4563576885703414131L;
	private String userName;
	private String password;

	public AuthenticationBean(){
		
	}
	
	public String authorize(){
		throw new RuntimeException();
	}
	
	private Map<String, Object> getSessionMap(){
		Map<String, Object> ret=FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
		
		return ret;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	
	
}
